package cn.wolfcode.${project}.service;

import cn.wolfcode.${project}.domain.${capitalize};
import cn.wolfcode.${project}.query.${capitalize}QueryObject;
import org.springframework.data.domain.Page;
import org.springframework.util.StringUtils;

import java.util.List;

/**
 * @author ${author}
 * @Date ${.now?string("yyyy-MM-dd HH:mm")}
 */
public interface ${capitalize}Service {
    void save(${capitalize} ${uncapitalize});
    void update(${capitalize} ${uncapitalize});
    void delete(String id);
    ${capitalize} get(String id);
    List<${capitalize}> list();

    /**
     * ${chinese}高级查询
     * @param qo 查询条件
     * @return
     */
    Page<${capitalize}> query(${capitalize}QueryObject qo);

    /**
    * 新增或编辑${chinese}
    * @param ${uncapitalize}
    */
    void saveOrUpdate(${capitalize} ${uncapitalize});

}
